Crystallography of new materials for clean energy production and the switch to a hydrogen based economy