Patterns of magnetic flux penetration in superconducting films