A kinetic model of the transformation of a micropatterned amorphous precursor into a porous single crystal