A modified empirical potential for energetic calculations of planar defects in GaN