The second type singularities of symplectic and lagrangian mean curvature flows