Prescribing Gaussian curvature on surfaces with conical singularities and geodesic boundary