Automated tuning of wireless mesh networks for smart meter applications