Measuring the intelligence of ruins – architectural strategies for a sustainable reuse of existing buildings