Magnetic coupling between Gd and Pr ions and magnetocaloric effect in Gd0.5Pr0.5Al2 compound