Energy losses of 252Cf fission fragments in thin foils