K-moduli, moduli of smoothness, and Bernstein polynomials on a simplex