Comparative study of electrical properties of thin films and sintered pellets of Ca1−xErxF2+x compositions