Modeling and design of microwave devices based on ferromagnetic nanowires