An integrated biosensor platform for extraction and detection of nucleic acids