Multiscale Parametrization for the Estimation of a Diffusion Coefficient in Elliptic and Parabolic Problems