A space–time spectral collocation algorithm for the variable order fractional wave equation