Application of NbN films to the development of very high field superconducting magnets