Decomposition of Pseudo-effect Algebras and the Hammer–Sobczyk Theorem