Comparative study of phase transitions in BaTiO3 thin films grown on (001)- and (110)-oriented SrTiO3 substrate