The earthquake magnitude is influenced by previous seismicity