SPECT image reconstruction using PDE-constrained optimization