On mechanisms of formation of environmentally harmful compounds in homogeneous combustors