N=1 M-theory-Heterotic Duality in Three Dimensions and Joyce Manifolds