Upper limits on the lunar atmosphere determined from solar-wind measurements