Comparison of preoperative pain and medication use in emergency patients presenting with irreversible pulpitis or teeth with necrotic pulps.