Systems and methods for analyzing spent dialysate