Simulation of neutral beam attenuation and its influence to beam emission spectroscopy diagnostic on HL-2A tokamak