Strain effects on stability, electronic and optical properties of two-dimensional C4X2 (X = F, Cl, Br)