Terrestrial laser scanner for monitoring the deformations and the damages of buildings