Modeling multi-hop CSMA-based networks through Semi-Markov chains