Solar fuel preparation