Simulating excitation spectra with projected entangled-pair states