A Geometric Characterization of Certain First Integrals for Nonholonomic Systems with Symmetries