A compartmental model for the analysis of SARS transmission patterns and outbreak control measures in China