Karel Frederik Quarles van Ufford — military officer