A supervised method for the automatic detection of impulsive noise in naval powerline communications