On the regularity of weak solutions to nonlinear elliptic systems of partial differential equations