Replay Attack Detection in Smart Grids using Switching Multi-sine Watermarking