Design of solar thermal energy systems for process heat and electricity generation