Optimising investments in battery storage and green hydrogen production