The Complexity of Drawing Graphs on Few Lines and Few Planes