pH-Dependency of the Physical Properties of the Nitrogen-Vacancy Centers in Diamonds