Observability for the one-dimensional heat equation