Generation of X-rays due to multiple runaway breakdown inside thunderclouds