Interdependence of guest radiationless transitions and localized phonon structure: NH and ND(A 3Π) in rare gas lattices