Control of the crystal structure and electrical transport in undoped PbTe films grown by pulsed laser deposition