Off-Road Navigation of Legged Robots Using Linear Transfer Operators