Egypt to divert gas from factories to power plants