Optical Properties and Electronic Structures of Self-Organized Quantum Well (CnH2n+1NH3)2PbX4 (X=I, Br, Cl)