On Gibbs States of Mechanical Systems with Symmetries