Nicola Sturgeon: Scotland independence referendum would be legal unless court blocks it