Flux penetration and expulsion in thin superconducting disks