Structure and Optical Properties of Sn-Based Halide Perovskites (C10H18N2)SnX4 (X = Cl, Br, I)