Phase characterization of an InP based optical-CDMA encoder using frequency-resolved optical gating (FROG)