Double radiative pion capture on hydrogen and deuterium and the nucleon's pion cloud