Pulsed magnetron sputtering of reactive compounds