Real-Time Prediction of Ground Motion from P-Wave Records