X-ray absorption near-edge structure calculations with the pseudopotentials: Application to theKedge in diamond andα-quartz | Synapse