Study shows why chronic pain, depression go hand in hand