Preventive thermographic diagnosis of historical buildings for consolidation