Codimension-one minimal cycles with coefficients in ${\bf Z}$ or ${\bf Z}_p$ and variational functionals on fibered spaces