The principle of penalized empirical risk in severely ill-posed problems