A semi-Markov approach in the reliability of existing buildings affected by wearing