A court in Bangladesh has sentenced the Nobel laureate Muhammad Yunus to six months in jail for violating the country's labour laws.