Effect of transverse electrical fields on x-ray amplification in a capillary-discharge Z-pinch