The thickness of a graph