Meshless method for solving radiative transfer problems in complex two-dimensional and three-dimensional geometries