Find the number of different 7-digit numbers that can be formed using only the digits 1, 2, and 3, under the condition that the digit 2 occurs exactly twice in each number?