Formation of hydroxylamine on dust grains via ammonia oxidation