Modularized Bilinear Koopman Operator for Modeling and Predicting Transients of Microgrids