Kepler mission declares spacecraft emergency