Mechanisms involved in the anti-apoptotic effect of magnetic fields