Den tidigare världsettan i tennis Boris Becker har dömts till 2,5 års fängelse för att ha dolt tillgångar när han förklarades i personlig konkurs.