Synchrotron‐based X ray absorption studies of cation environments in Earth materials