Connectivity as an alternative to boundary integral equations: Construction of bases.