Impact of microstructure on the electron–hole interaction in lead halide perovskites