A nanoscale perspective on solid oxide and semiconductor membrane fuel cells: materials and technology