Geometrical optics modelling of grazing incidence X-ray fluorescence of nanoscaled objects