Towards a more general measure of revealed comparative advantage variation