Field-induced phase transitions in an antiferroelectric liquid crystal using the pyroelectric effect