High-sensitivity magnetometry based on quantum beats in diamond nitrogen-vacancy centers.