Integral formulas for a class of curvature PDE's and applications to isoperimetric inequalities and to symmetry problems