Crossover to tricritical behavior at the nematic to smecticA transition: An x-ray scattering study