Lightning discharges in association with mesospheric optical phenomena in Japan and their effect on the lower ionosphere