Working principle of tailings energy storage power station