Mathematical Models for Emerging Infections in Socially Structured Populations: The Presence of Households and Workplaces