Size distributions of H II regions in galaxies. I. Irregular galaxies.