Angular-spectrum representation for localized waves