Hay, Edward, active 1774-1785, Secretary to the Governor-General of Bengal