NIPAD: a non-invasive power-based anomaly detection scheme for programmable logic controllers