First-principles calculation of x-ray absorption-edge structure in molecular clusters | Synapse