Processing magnetic microwires for magnetic bistability and magnetoimpedance