Gateway selection and clustering in multi-interface wireless mesh networks considering network reliability and traffic