X‐ray photoelectron spectroscopy and the pattern recognition method—their application to surface studies in CoPd alloys