Detection of sinusoidal signals in noise by probabilistic modelling of the spectral magnitude shape and phase continuity