Crafting In-context Examples according to LMs' Parametric Knowledge