Temperatures of lunar impact flashes: mass and size distribution of small impactors hitting the Moon