Mathematical analysis and homogenization of a free boundary problem for in situ leaching of rare earths with a special periodic structure | Synapse