Graphene on two-dimensional hexagonal BN, AlN, and GaN: Electronic, spin-orbit, and spin relaxation properties