Computing Preferred and Weakly Preferred Answer Sets by Meta-Interpretations in Answer Set Programming