Phonon contribution to the X-ray photoemission linewidths in polar crystal films