Text this: Optimized Distributed Control for Power Sharing and Voltage-Frequency Regulation in Islanded Microgrids