Sharp a priori estimates for a class of nonlinear elliptic equations with lower order terms