A hierarchical preconditioner for the mortar finite element methodDiagonal edge preconditioners in p-version and spectral element methods