Ligand-Size Related Dimensionality Control in Metal Halide Perovskites