ERP Detection Based on Smoothness Priors