High-speed computerised dc magnetisation and demagnetisation of mild steel