Improving the gas sensing response of polyaniline via a porous carbon nanotube-based template