Optimal design and energy management of a renewable energy plant with seasonal energy storage