Structure and magnetic properties of cobalt-intercalated layered InSe crystals