Eritrea have reached the main group stage of the Africa Cup of Nations (Afcon) qualifying following a 19-year absence.