Ecuador declares state of emergency in three provinces over protests