When did Denmark lose control of Frederiknagore?