and pharmaceutically acceptable salts thereof; wherein the variables RA, RAA, subscript n, subscript q, ring A, X2, L, subscript m, X1, R1, R2, R3, R4, R5, D and E have the meaning as described herein, and compositions containing such compounds and methods for using such compounds and compositions.