Johann Baptist Homann, Belagerung von Stralsund