Grain boundary scattering in the normal state resistivity of superconducting NbN thin films