SNP and Scottish Greens power-sharing deal ends