Scientists have confirmed what many pet owners already know to be true - the death of a pet can hurt just as much as losing a family member.