Synthesis, Crystal Structure, and Optical Properties of (CH3NH3)2CoX4 (X = Cl, Br, I, Cl0.5Br0.5, Cl0.5I0.5, Br0.5I0.5)