Effect of ambient temperature on emergency department visits in Shanghai, China: a time series study