Non-perturbative calculation of orbital and spin effects in molecules subject to non-uniform magnetic fields.