Evaluation of a Generator Networked Control System in the Presence of Cyberattacks