Precise measurements in digital holographic microscopy by modeling the optical train