Brazil announces end to Amazon mega-dam building policy