William Linnæus Gardner — British army officer in India