Learning mechanisms in memristor networks based on GaN nanomembranes