Which king of Denmark and Norway had harsh restrictions imposed on him due to his close ties with Germany?