Lex objects in a 2-category