Efficient, Flexible, and Resilient Control for Optimal Operation of Hybrid-Electric Shipboard Microgrids