Magnetic properties of CoPt–SiNx/Ag nanocomposite films