Theoretical study of the structural, electronic and vibrational properties of CdIn2Te4