Electronic, transport, and magnetic properties of punctured carbon nanotubes