Ensemble nonequivalence and Bose-Einstein condensation in weighted networks