Endogenous rhythms and chaos in crassulacean acid metabolism