Measurement of the mass attenuation coefficients of Ge and BGO for high-energy gamma-rays