Demagnetization of an ultrathin Co/NiO bilayer with creation of submicrometer domains controlled by temperature-induced changes of magnetic anisotropy