Second-order flows for computing the ground states of rotating Bose-Einstein condensates