Modeling the fabrication process of micropatterned macromolecular scaffolds for peripheral nerve regeneration