Five-dimensional relativity with energy as fifth dimension