The invention provides compounds of formula (I), processes for their preparation, pharmaceutical compositions containing them, a process for preparing the pharmaceutical compositions, and their use in therapy, wherein A, D, R
1
, R
2
, R
3
, R
4
, R
5
, R
6
, n, p and q are as defined in the specification.