Ambient gas effects during the growth of lithium niobate films by pulsed laser deposition