A magnetised foil as inclined π-flipper for time-of-flight neutron beams