What led to the defeat of the Prussians at Memel?