A pathwise inference method for the parameters of diffusion terms