OWL: Optimized Workforce Learning for General Multi-Agent Assistance in Real-World Task Automation