Hybrid single-nanowire photonic crystal and microresonator structures