How did gender roles change in response to industrialization