The ionizing radiation from massive stars and its impact on H ii regions: results from modern model atmospheres