Investigation of metal–GaN and metal–AlGaN contacts by XPS depth profiles and by electrical measurements