Irom Sharmila has ended what has been described as the world's longest hunger strike against a controversial security law, in order to compete in local elections.