Charge trapping effects in cryogenic particle detectors made using single-crystal semiconductor substrates