The influence of stopping power and temperature on latent track formation in YAP and YAG