An intrinsic observer for a class of simple mechanical systems on a Lie group