Factors related to self-perceived need for dental treatment in adolescents, adults, and elders in a city in Northeastern Brazil