Comparison of photovoltaic and solar thermal energy production