Text this: Optimal selection and location of bess systems in medium-voltage rural distribution networks for minimizing greenhouse gas emissions