Evaluation of using the Doppler shift effect of prompt gamma for measuring the carbon ion range in vivo for heterogeneous phantoms