Multilevel sparse approximate inverse preconditioners for adaptive mesh refinement