Peru declares state of emergency on border with Chile