Satellite megaconstellations will threaten space-based astronomy