Sparse Identification-Enabled Data-Driven Modeling for Nonlinear Dynamics of Microgrids