Effect of an external electric field on the electronic properties of SnS2/PbI2 van der Waals heterostructures