First principle investigation of structural, electronic and optical properties of two dimensional group-III nitride based heterostructures