Foil thickness measurement via the intensity ratio of proton-induced X-Rays