Thickness-Dependent Current Density and Flux Distribution in Thin Current-Carrying Superconducting Films Exposed to a Magnetic Field