Torque method for the theoretical determination of magnetocrystalline anisotropy.