Sudan military declares 3-month state of emergency