Tunable electronic properties of two-dimensional nitrides for light harvesting heterostructures