Dynamical simulation of field emission in nanostructures