Characteristics and changing nature of the state in capitalist and socialist economies