DIRECT COMPUTATION OF THERMAL EMISSION FROM NANOSTRUCTURES