A geometric (Pancharatnam) phase approach to the polarization and phase control in the coherent optics circuits