A general approach to hysteresis. Part 2: Development of the domain theory