Electronic and magnetic properties of stacked graphene quantum dots