Observation of phase transitions in an antiferroelectric liquid crystal investigated by scanning tunneling microscopy