Film thickness determination by electron probe microanalysis