Discrete Least-Squares Approximations over Optimized Downward Closed Polynomial Spaces in Arbitrary Dimension