Laser-accelerated ions from layered targets