Metal organic frameworks for energy storage and conversion