Basilisk lizard inspired methods for locomotion on granular and aquatic media with robotic applications