Text this: Assessing and mitigating impact of time delay attack : case studies for power grid controls