Variables associated with interprofessional collaboration: a comparison between primary healthcare and specialized mental health teams