O'Farril, Gonzalo, active 1808-1831, Spanish War Minister