Metrics of constant curvature on a sphere with two conical singularities