Distance magic labeling of the halved folded n-cube