Analytically pricing European options under the CGMY model