Design and optimization of the diamagnetic lateral force calibration method.