Anharmonic lattices, structural transitions and melting