Simulation study of magnetic fields generated by the electromagnetic filamentation instability