Thermomechanical solar power generation