Preparation of magnetic tips for a scanning force microscope