Resistive memory modeling: a generalized stochastic framework consolidating variability, parasitic, and temperature effects | Synapse