Untangling the roots of tolerance: how networks, voluntary associations, and personal attributes shape attitudes toward ethnic minorities and immigrants