Optimal hydraulic PTO and linear permanent magnet generator for a floating two buoy wave energy converter