Misfit dislocation loops or incommensurate structure at an interface: Vibrational and anharmonic effects