Effect of quantum fluctuations on structural phase transitions in SrTiO3 and BaTiO3.