The Social Pipeline: How Friend Influence and Peer Exposure Widen the STEM Gender Gap