Novel structural and magnetic properties of Mg doped copper nanoferrites prepared by conventional and wet methods