Lattice dynamics and thermal properties of CaxMg1−xS ternary alloys