Local linear convergence of alternating projections in metric spaces with bounded curvature