Modeling the Variability of Au/Ti/h-BN/Au Memristive Devices