Formation of nonlinear magnetic islands via trapped electrons in the lower-hybrid range