Polarization charges and polarization-induced barriers in AlxGa1-xN/GaN and InyGa1-yN/GaN heterostructures