Algebraic Reynolds stress modeling of turbulence subject to rapid homogeneous and non-homogeneous compression or expansion