Ultraviolet stellar spectral classification using a multilevel tree neural network