A quantum radio frequency signal analyzer based on nitrogen vacancy centers in diamond