Magnetic-Field Generation and Amplification in an Expanding Plasma