Analytic solutions of the Cauchy problem for two-component shallow water systems