Modification of the radiation transfer equations to take into account NLTE effects in the simulations of supernova light curves by the radiation hydrodynamic code STELLA