The eighteenth and nineteenth centuries _____ the widespread use of electricity and the birth of the steam engine , leading to the development of factories and cities.