Energy production from the motions of offshore floating platforms