Photo- and charged-particle-ionization of He and D2 studied with COLTRIMS