Constant-market-shares analysis and index number theory