A simple proof of Kotake-Narasimhan Theorem in some classes of ultradifferentiable functions