Frequency-Constrained Energy Management System for Isolated Microgrids