Marquis, Thomas, active 1816-1821, Captain in the Indian Navy