The multi-line slope method for measuring the effective magnetic field of cool stars: an application to the solar-like cycle of ε Eri