Bipolar resistive switching in a single layer memory device based on a conjugated copolymer