Regularization of incorrectly posed problems and the choice of regularization parameter