Text this: Stability Enhancement of Inverter-Based Microgrids Using Optimized Neural Networks