Spectrum tailoring of low charge-to-mass ion beam by the triple-stage acceleration mechanism