Morse index and linear stability of relative equilibria in singular mechanical systems