Swiss National Bank reports first-half loss amid market fluctuations