Logic of Wg and Dpp induction of distal and medial fates in the Drosophila leg