For a complex number \(z\) find the minimum value of
\(|z - 3|^2 + |z - 5 + 2i|^2 + |z - 1 + i|^2.\)
Thank you!