Localization of two-dimensional quantum walks