Optimized shapes of oscillating resonators for generating high