Influence of the ions on the dynamical response of a nematic cell submitted to a dc voltage