Optimization at different time scales for the design and management of an oscillating water column system