Foil thickness measurements from convergent-beam diffraction patterns