Nanocrystals and thin films of oxide and chalcogenide spinels for spintronic applications