Beijing residents urged to stay indoors as pollution surges