Critical-state model for thin superconductors with history dependent Jc(B)