Anharmonic effects and the lattice dynamics of insulators