Mechanisms of polyphosphate degradation