How did queen margrethe II come to power?