Heterogeneous effects in the process of ozone synthesis in electrical discharges