Local pinning-force distribution in NbN films