Nicola Sturgeon quits as Scotland's first minister