Pancharatnam Phase of Two-Mode Optical Fields with Kerr Nonlinearity