A constrained estimation procedure for the parameters of a diffusion process