On the detection of pure sine waves embedded in a spectrum of stochastically excited p modes