Metal-insulator transition in ferromagnetic Mn-doped CuO thin films