Which fortress that controlled the entranceway between Kattegat and Øresund was in "Hamlet"?