A compound of formula the following formula: (I). In this formula, moieties A, B, X, R1, R2, and R3 are defined herein. Also disclosed are a nanocomplex that is formed of such a compound and a pharmaceutical agent, and a nanocomplex that is formed of a protein and a bioreducible compound.