Study application of an unmoored ocean wave energy harvester with harmonic and random excitation