Lattice Perturbations in CaWO4 and CaMoO4