The factors driving self-efficacy in intractable chronic pain patients: a retrospective study