The FAMU experiment at RIKEN-RAL to study the muon transfer rate from hydrogen to other gases