Magnetic field amplification and generation in hypervelocity meteoroid impacts with application to lunar paleomagnetism