The nature of the lead-iodine bond in PbI2: A case study for the modelling of lead halide perovskites