Research on ecclesiastical heritage: from census to design