Geometrical effects on the thermoelectric properties of single/bilayer graphene junctions