Development and application of first-principles methods to study the properties of high entropy alloys