Telefona gönder: Variational determination of eigenstrain sources of residual stress