Lushington, Edmund Henry, Judge in Ceylon