High resolution spectroscopy of the electronic excitation of NO trapped in rare gas matrices