Generation of large scale magnetic fields at recombination epoch