Anaerobic metabolism of bacteria performing enhanced biological phosphate removal