Electrical Control for Extending the Ramsey Spin Coherence Time of Ion-Implanted Nitrogen-Vacancy Centers in Diamond