Erdogan's main rival accepts election results