Study of the reactions e+e−→π+π−π0π0π0 and π+π−π0π0η at center-of-mass energies from threshold to 4.35 GeV using initial-state radiation