Optimization of thin-film tips for magnetic force microscopy