Evolution of protoplanetary nebulae