External forcing of Moon and Earth seismicity at Rieger periods