How and why Israel helped create Hamas