Design of an integrated generator and heaving buoy