Nonlinear mixed effects modeling and warping for functional data using B-splines