Nonlinear elliptic equations with singularities and elliptic systems