Hard and soft nanocomposites enabled by rationally designed nonlinear copolymers derived from high functionality polyols