Moments, time-inversion and source identification for the heat equation