Investigation of the structural, mechanical, dynamical and thermal properties of CsCaF3 and CsCdF3