On the impact of temporal-correlation requirements and downstream industrial flexibility on the optimal design and costs for onsite electrolytic hydrogen production