Physics and chemistry of gas in planetary nebulae by