Variational quantum algorithms for discovering Hamiltonian spectra