The invention provides compounds having the general formula I:and salts thereof, wherein the variables RA, RB, RC, L1, L2, L3, A, B, C, X, Y, Z, E, m, n, and p have the meaning as described herein, and compositions containing such compounds and methods for using such compounds and compositions.