Access to dental services and self-perception of oral health in adolescents, adults, and the elderly