Where galaxies collide – II. NGC 5195, the M51 system and the luminosity function of H II regions⋆