Smooth function approximation by deep neural networks with general activation functions