Tides and batteries for green hydrogen production