Connected Substitutes and Invertibility of Demand