Nicola Sturgeon defends SNP losses, saying the night was still the "second best ever result".