Element and time step criteria for solving time-dependent field problems using the finite element method