The invention provides novel compounds having the general formula (I) wherein R1, Y, A, W, R2, m, n, p and q are as described herein, compositions including the compounds and methods of using the compounds.本發明提供具有通式(I)之新穎化合物其中R1、Y、A、W、R2、m、n、p及q係如本文所闡述,包括該等化合物之組合物及使用該等化合物之方法。