GaN-based heterostructures for sensor applications