Structural and magnetic properties of Mn-doped CuO thin films