Control strategy for gait transition of an underactuated 3Dbipedal robot