Online gait programming of humanoid walking via NMPC