A sparse matrix open boundary method for finite element analysis