Nanobeam photonic crystal modulator