Robust numerical valuation of European and American options under the CGMY process