Nanotesla sensitivity magnetic field sensing using a compact diamond nitrogen-vacancy magnetometer