Use of prior information in the estimation of some parameters of Gaussian and inverse Gaussian distributions