Nasa scrambles to save Kepler spacecraft from state of emergency