Control by density effects of the Rydberg-valence configuration mixing in matrix isolated NO