Bipolar electrically programmable memory structures