Optimization of Bone Scaffold Porosity Distributions