An edge element approach for dynamic micromagnetic modelling