Chile ends Pinochet era electoral system