Modeling solar force-free magnetic fields