New mechanism for the generation of primordial seeds for the cosmic magnetic fields