Evidence of X-Ray Synchrotron Emission from Electrons Accelerated to 40 TeV in the Supernova Remnant Cassiopeia A