Theoretical investigation of electronic and thermoelectric properties of single-wall carbon nanotube p–n junction