Modelling of electromechanical relays taking into account movement and electric circuits