Charmonium-like states and K* resonances from lattice QCD