Nicola Sturgeon has committed to running the next general election as a “de facto referendum” on Scottish independence.