Neurosymbolic Systems of Perception & Cognition: The Role of Attention