what type of writing did ancient egypt use