Brain scans show dogs have empathy