Von Müffling, Friedrich Karl Ferdinand, Baron, Prussian general