Electronic and magnetic properties of graphene-based systems