Molecular basis for SNX-BAR-mediated assembly of distinct endosomal sorting tubules