Lennard-Jones approach to optical zero-phonon spectra of impurities in glasses