Magnetic and electronic properties of strontium hexaferrite SrFe12O19 from first-principles calculations