Development of the Advance Energetic Pair Telescope (AdEPT) for medium-energy gamma-ray astronomy