A comparison of optical and nuclear methods for the measurement of the thickness of thin metal foils