The geometry of terrestrial laser scanning; identification of errors, modeling and mitigation of scanning geometry