Ab initio analysis of the x-ray absorption spectrum of the myoglobin-carbon monoxide complex: Structure and vibrations