Nissan posts quarterly loss, forecasts smaller annual decline