Quality factor control of mechanical resonators using variable phononic bandgap on periodic microstructures