Study of a hydraulic system converting energy from sea waves near the coast