Reconstruction of temperature, accumulation rate, and layer thinning from an ice core at South Pole using a statistical inverse method