A geometric inequality for the total curvature of plane curves