Exact modelling of time-of-flight cameras for optimal depth maps