An alternative procedure to cumulative sum for cyber-physical attack detection