DC Magnetometer Based on Ensembles of Nitrogen Vacancy Centers in Diamond