Physics of locked modes in ITER: Error field limits, rotation for obviation, and measurement of field errors