Sensitive ac and dc magnetometry with nitrogen-vacancy-center ensembles in diamond | Synapse