Aiya, Veeraraghavapuram Nagam, 1850-1917, Diwan of Travancore