Investigation of the technical condition of buildings and structures