On the exact inverse and the p-th order inverse of certain nonlinear systems