The survival of microorganisms to astronomical impacts