Overspeed protection of the generator is done by