Fast determination of earthquake magnitude and fault extent from real-time P-wave recordings