The role of physical and operational parameters in photocatalysis by N-doped TiO2 sol-gel thin films