Designing biomaterials for 3d printing