Design and construction of an “intelligent” model to investigate fresco decay