Black hole mergers from dwarf to massive galaxies with the NewHorizon and Horizon-AGN simulations