Why proton beams are more accurate than X-rays in treating cancer