Computer Modelling of a PC-Based AVR and Stabiliser for a Synchronous Generator