Metal–organic frameworks as a platform for clean energy applications