Approximate motion planning and the complexity of the boundary of the union of simple geometric figures