Egypt extends state of emergency for three months