Gunman surrenders in standoff that wounded 6 Philadelphia cops