Gabor lenses for capture and energy selection of laser driven ion beams in cancer treatment