Taxonomic analysis of asteroids with artificial neural networks