Electronic structure and magnetic properties of the ThxY1−xCo4B solid solution