Tractability of approximation by general shallow networks