Automated selection of grounding algorithm in Answer Set Programming