Effect of phonons on the electron spin resonance absorption spectrum