Total least norm for linear and nonlinear structured problems