Diamagnetic anisotropy measurements of nematic liquid crystals