The position of the CN stretching frequency in organic and inorganic molecules