Position controlled nanocavity using a single nanowire in photonic crystals