Scaling laws of electromagnetic and piezoelectric seismic vibration energy harvesters built from discrete components