Peru declares state of emergency to end protests over mine