Nuclear and magnetic structures of the distorted hexagonal perovskites ND4FeCl3 and NH4FeCl3