Model reduction by separation of variables: A comparison between hierarchical model reduction and proper generalized decomposition