Linear radio frequency quadrupole for the cooling and bunching of radioactive ion beams