Structural and chemical requirements of metal-organic frameworks for hydrogen storage