DART: a simulation code for a direct energy converter for fusion reactors