Heavy-Element Abundances and Dust Depletions in the Host Galaxies of Three Gamma-Ray Bursts