P-wave picking for earthquake early warning: refinement of a T pd method