Ellipse-based principal component analysis for self-intersecting curve reconstruction from noisy point sets