Hardness Optimization of (Cr,Mg)(N,O) Thin Films Prepared by Pulsed Laser Deposition