Superconductivity of disordered NbN films deposited on magnesium oxide and oxidized silicon substrates