Electrochemical and magnetic properties of 3D porous NiS/CuS nanocomposites