Utilization of coincidence criteria in absolute length measurements by optical interferometry in vacuum and air