Radiative and radiationless decay of resonances resulting from electronically nonadiabatic interactions: A computational approach valid for both narrow and broad linewidths and large energy shifts