what is the intermediate value theorem in simple terms