DNA complementary and partially complementary tethered to a functionalized substrate:a molecular dynamics approach to biosensing