A direct collocation framework for optimal control simulation of pedaling using OpenSim