Towards a 3D likelihood analysis in very-high-energy γ -ray astronomy: the case of H.E.S.S.