Radiative pion capture in 2H, 3He and 3H