Tunable resonant frequencies for determining Young's moduli of nanowires