Built-in surface electric field, piezoelectricity and photoelastic effect in GaN nanorods for nanophotonic devices