A Mechanism for Conductance Switching in Carbon-Based Molecular Electronic Junctions