Dielectric and optical properties of cubic perovskites ATiO3 (A = Ca, Sr, Ba, Pb)