Text this: Modeling and simulation of digital frequency relay for generator protection