Meissner shielding currents and magnetic flux penetration in thin-film superconductors