Growth and properties of GaN and AlN layers on silver substrates