Spatial curvature as dark energy source