Statistical modeling of diffusion processes with free knot splines