Text this: Hardware Reverse Engineering for Secure Smart Grids