Guided-wave frequency doubling in surface periodically poled lithium niobate: competing effects