Computational study of sodium magnesium hydride for hydrogen storage applications