Fully integrated microsystem for bacterial genotyping