Effective resolution of banks: Problems and solutions