A raytracer for plenoptic cameras with some tools for integral spectrography