Mass balances and distributions of C, N, and P in the anaerobic digestion of different substrates and relationships between products and substrates