Gravar-mail: Implicit methods for efficient musculoskeletal simulation and optimal control