Electronic structure effects on B K-edge XANES of minerals.