Bob McDonnell, the former governor of the US State of Virginia, has been sentenced to two years in prison for taking nearly $170,000 (£111,000) in money and gifts in exchange for promoting a dietary supplement while he was in office.