Effect of the comprehensive smoke-free law on time trends in smoking behaviour in primary healthcare patients in Spain: a longitudinal observational study