how does a steam turbine generator work