With the development of which economy did the realms of work and home become separate, such that people had to leave home and go to work?