Mathematical modeling for network selection in heterogeneous wireless networks - A tutorial