Rupture of thin films formed during droplet impact