Co/Ni(111) superlattices studied by microscopy, x-ray absorption, and ab initio calculations