Efficient hexapodal locomotion control based on flow-invariant subspaces