Scotland's First Minister Nicola Sturgeon has set out her legal roadmap to hold a new referendum on independence in 2023.