Optimal retrofitting of natural gas pressure reduction stations for energy recovery