Sector classification in stock markets: a latent class approach