The life and opinions of major-general Sir Charles Metcalfe Macgregor, quartermaster-general in India