Shared helpers for the TDHF/SF/MRSF z-vector (CPHF/CPKS) solvers.
These routines were previously duplicated, one copy per response module
(tdhf_z_vector, tdhf_sf_z_vector, tdhf_mrsf_z_vector). They are
collected here so the three z-vector drivers share a single, tested
implementation.