Green's functions in the theories of radiationless transitions, complex molecular spectra and resonant Raman cross sections: The solution for a generalized model, and its applications to the naphthalene second singlet