Proton switching of polarity in metalloamphiphile crystals