A Hybrid Approach to Optimization in Answer Set Programming