Chemically induced grain boundary migration as a free boundary problem