Calculation of optical eigenmodes and gain in semipolar and nonpolar InGaN/GaN laser diodes