PHANGS-MUSE: The Hii region luminosity function of local star-forming galaxies