maInd2Coord: Convert spot indices to grid and spot matrix coordinates
Description
This functions converts spot indices to grid and spot matrix coordinates (four
coordinates), where spots on the array are numbered consecutively starting
from the top left grid and the top left spot within each grid.