The approximate inverse preconditioner for finite element analysis of helmholtz equations