Cyber-Attack Detection and Countermeasure for Distributed Electric Springs for Smart Grid Applications