Collision of electromagnetic solitons in a weak ferromagnetic medium