Localization properties of lattice fermions with plaquette and improved gauge actions