Disclosed are compounds of formula (I) below or pharmaceutically acceptable salts thereof:in which each of variables R1-R6, L, m, and n is defined herein. Also disclosed are a method for treating an opioid receptor-associated condition with a compound of formula (I) and a pharmaceutical composition containing same.