Egypt extends state of emergency by two years