Compounds of formula (I) and its pharmaceutically acceptable salts are describedwherein R1, R2, X, Y, A, B are as defined in the specification. Also disclosed are methods for preparing the compounds of formula (I) or pharmaceutically acceptable salts thereof, and pharmaceutical compositions comprising the compounds of formula (I) or pharmaceutically acceptable salts thereof.