Twice Q-polynomial distance-regular graphs of diameter 4