Measurements ofβ-endpoint-energies using a magnetic electron separator