Physics and chemistry of gas in planetary nebuale by