Approximation of continuous and discontinuous mappings by a growing neural RBF-based algorithm