Finite-deformation phase-field chemomechanics for multiphase, multicomponent solids