Contributions of repulsive and attractive interactions to nematic order