PAHs and star formation in the H II regions of nearby galaxies M83 and M33