X-ray absorption studies of intermediates in peroxidase activity