Factors associated with children’s perception of pain following dental treatment