Photonic crystal nanobeam cavities for tunable filter and router applications