Statistical mechanics of superparamagnetic colloidal dispersions under magnetic fields