The thickness of the complete multipartite graphs and the join of graphs