The physiology of ex vitro pineapple (Ananas comosus L. Merr. var MD-2) as CAM or C3 is regulated by the environmental conditions