Spectroscopic studies of diatomic molecules: Investigation of CH, CD, NH and BH emission band systems obtained in various sources