Geomagnetic reversals from impacts on the Earth