Dust particle charging and formation of dust structures in the upper atmosphere