Knowledge and dating for preservation of historical and cultural significance of the building: the case study of the medieval Castello quarter in Cagliari (XVII-XIX century)