Switching behaviour of patterned SmCo5 thin films investigated by magnetic force microscopy