how does a standby generator work