On the relations between the bandgap, structure and composition of the M–Si–N (M = alkali, alkaline earth or rare-earth metal) nitridosilicates