Nonnegative solutions of some quasilinear elliptic inequalities and applications