Heterogeneous magnetic state in nanocrystalline cupric oxide CuO