Agility and search and rescue training differently affects pet dogs’ behaviour in socio-cognitive tasks