Sagittal gait synthesis for a five-link biped robot