X-ray microanalysis of stratified specimens