Modelling of plasma processes in cometary and planetary atmospheres