Integration of operation and design of solar fuel plants