LaseRitz: Far-infrared laser line assignment and prediction by the Ritz combination principle, with application to methanol and hydrazine