Galasso, Mattia, General of the imperial army