Analysis of background textures in banknotes and identity documents for counterfeit detection