Influence of exciton motion on the shape of optical absorption lines: Applications to vibrations at surfaces.