A framework for block ILU factorizations using block-size reduction