Computation of the Kummer functions and Whittaker functions by using Neumann type series expansions