Rajapakse bows out, ending Sri Lanka power struggle