Application of spectrum synthesis method to depth profile analysis