Understanding metal-organic frameworks for solar fuel production