Molecular dynamics studies on application of carbon nanotubes and graphene sheets as nano-resonator sensors