The characteristic polynomial in calculation of exponential and elementary functions in Clifford algebras