Micromagnetic modeling of nanoscale spin valves