Instability and fractionation of two-layer capillary jets