Two-legged robot mimics human balance while running and jumping