Spintronic device modeling and evaluation using modular approach to spintronics