Towards a terradynamics of legged locomotion on homogeneous and Heterogeneous granular media through robophysical approaches