Measurement of foil thickness and extinction distance by convergent beam transmission electron microscopy