Melting and freezing at surfaces