A posteriori parameter choice for general regularization methods for solving linear ill-posed problems