Task-Aware Resolution Optimization for Visual Large Language Models