Deep Neural Networks Learn Non-Smooth Functions Effectively