Electronic states of monolayer hexagonal boron nitride formed on the metal surfaces