Optical measuring apparatus and calibration method