The present invention provides compounds of formula (I): compositions comprising such compounds; the use of such compounds in medicine; and methods of treating patients with such compounds; wherein A, W, R5, n, Z, X, Y and B are as defined herein. The present invention also relates to compounds useful as synthetic intermediates of compounds of formula (I).