Simultaneous generation of monoenergetic tunable protons and carbon ions from laser-driven nanofoils.