Numerical Simulation of Electromagnetic Solitons and their Interaction with Matter