Petrie, William Matthew Flinders, Sir, Egyptologist