Characterization of charge collection in CdTe and CZT using the transient current technique