characteristics, modelling and electromagnetic theory of the memristor