The product of two consecutive integers is 2 less than the square of the smaller integer. Find the larger of the two integers.