Non-convex scenario optimization with application to system identification