Vibrational spectroscopy of polyatomic materials: Semiempirical calculations of anharmonic couplings and infrared and Raman linewidths in naphthalene and PETN crystals