Dual-configuration in-memory computing bitcells using SiOx RRAM for binary neural networks