Mg-based materials for hydrogen storage