Doncic's Slovenia edge Spain, stay perfect