Simulation of the Power Take-off System for a Heaving Buoy Wave Energy Converter