Structural, thermodynamical and optical properties of Cu2-II-IV-VI4 quaternary compounds