An Optimised Gateway Selection Mechanism for Wireless Ad hoc Networks Connected to the Internet | IEEE Conference Publication | IEEE Xplore