The critical role of materials and device geometry on performance of RRAM and memristor: Review | Synapse