Producing homogeneous cryogel phantoms for medical imaging: a finite-element approach