Text this: Augmented Bolza-Based Optimal Control Approach for Frequency Regulation and Power Tracking in Islanded Microgrids