Synthesis of magnesium nitride films with BN as protective layers by reactive radio-frequency magnetron sputtering