A depositary receipt is a certificate that represents foreign shares on a local market. How ADRs and GDRs work, how a ratio sets the price, and what fees and risks to check.