Friction of hexagonal boron nitride in various environments