Magnetic effects on the resonant X-ray reflectivity: circular dichroism at the 2p edges of Ni