Cost-benefit analysis of battery storage in medium voltage distribution networks