Mixed-dimensional self-assembly organic–inorganic perovskite microcrystals for stable and efficient photodetectors