Optimal design for vibration energy harvesters based on quasi-periodic structures