Peter Leijonhufvud — Swedish baron, officer and civil servant