Controllable two- <i>vs</i> three-state magnetization switching in single-layer epitaxial Pd<sub>1-x</sub>Fe<sub>x</sub> films and epitaxial Pd<sub>0.92</sub>Fe<sub>0.08</sub>/Ag/Pd<sub>0.96</sub>Fe<sub>0.04</sub> heterostructure