Structure and phase transitions of the Sn/Ge(111) surface