Magnetic phase transition and magnetocaloric effect in Dy12Co7 compound