Inelastic Neutron and X-ray Scattering Applied to High-temperature Superconductivity