Mechanical resonators based on graphene and carbon nanotubes