Compounds of the formula I:
or pharmaceutically acceptable salts thereof,
wherein m, p, q, Ar, R
1
and R
2
are as defined herein. Also provided are methods for preparing, compositions comprising, and methods for using compounds of formula I.
Compounds of the formula I, II or III:
or pharmaceutically acceptable salts thereof,
wherein m, n, q, Ar, R
1
, R
2
, R
3
, R
4
and R
5
are as defined herein. Also provided are methods for preparing, compositions comprising, and methods for using compounds of formulas I-III.