Switching of Resistive Memory Behavior from Binary to Ternary Logic via Alteration of Substituent Positioning on the Subphthalocyanine Core.