Nanogap structures for molecular electronics and biosensing