Social change, codes and museums : towards an historical typology of western art