An edge element approach for dynamic micromagnetic modeling