Chronic pain and depression: role of perceived impact and perceived control in different age cohorts