Electric field localizations in thin dielectric films with thickness non-uniformities