A former Volkswagen official at the centre of a bribery scandal had been given a two-year suspended jail sentence by a German court.