Nonlinear excitation of low-n harmonics in reduced magnetohydrodynamic simulations of edge-localized modes