what purpose cognitive restructuring theory explain how would cognitive restructuring theory