Linear stability of relative equilibria in mechanical systems with symmetry