Tailoring the pore structure of foam scaffolds for nerve regeneration